import Layout from '@/pages/index';

export default [
	{
		path: '/module',
		name: '组件封装',
		component: Layout,
		redirect: '/module/table',
		meta: {
			isSidebar: true
		},
		children: [
			{
				path: '/module/cast',
				component: () => import(/* webpackChunkName: "module" */ '@/views/module/cast'),
				name: '封装特性',
				meta: {
					isSidebar: true
				}
			},
			{
				path: '/module/item-com',
				name: '功能组件',
				component: () => import(/* webpackChunkName: "item-com" */ '@/views/module/item-com'),
				meta: {
					isSidebar: true
				},
				redirect: '/module/item-com/copy',
				children: [
					{
						path: '/module/item-com/copy',
						component: () => import(/* webpackChunkName: "item-com" */ '@/views/module/item-com/copy.vue'),
						name: '复制文本',
						meta: {
							isSidebar: true
						}
					},
					{
						path: '/module/item-com/map',
						component: () => import(/* webpackChunkName: "item-com" */ '@/views/module/item-com/map.vue'),
						name: '地图选择器',
						meta: {
							isSidebar: true
						}
					},
					{
						path: '/module/item-com/drawer',
						component: () => import(/* webpackChunkName: "module" */ '@/views/module/item-com/drawer'),
						name: '抽屉组件',
						meta: {
							isSidebar: true
						}
					},
					{
						path: '/module/item-com/dialog',
						component: () => import(/* webpackChunkName: "module" */ '@/views/module/item-com/dialog'),
						name: '弹窗组件',
						meta: {
							isSidebar: true
						}
					}
				]
			},
			{
				path: '/module/table',
				component: () => import(/* webpackChunkName: "module" */ '@/views/module/table'),
				name: '表格组件',
				meta: {
					isSidebar: true
				}
			},
			{
				path: '/module/form',
				component: () => import(/* webpackChunkName: "module" */ '@/views/module/form'),
				name: '表单组件',
				meta: {
					isSidebar: true
				}
			},
			{
				path: '/module/aggregate',
				component: () => import(/* webpackChunkName: "module" */ '@/views/module/aggregate'),
				name: '表格集成组件',
				meta: {
					isSidebar: true
				}
			}
		]
	}
];
